home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / docshell / nsIDocShellHistory.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  130 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDocShellHistory.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDocShellHistory_h__
  6. #define __gen_nsIDocShellHistory_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsISHEntry; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIDocShellHistory */
  21. #define NS_IDOCSHELLHISTORY_IID_STR "89caa9f0-8b1c-47fb-b0d3-f0aef0bff749"
  22.  
  23. #define NS_IDOCSHELLHISTORY_IID \
  24.   {0x89caa9f0, 0x8b1c, 0x47fb, \
  25.     { 0xb0, 0xd3, 0xf0, 0xae, 0xf0, 0xbf, 0xf7, 0x49 }}
  26.  
  27. class NS_NO_VTABLE nsIDocShellHistory : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOCSHELLHISTORY_IID)
  31.  
  32.   /**
  33.    * Get the SHEntry associated with a child docshell
  34.    */
  35.   /* nsISHEntry getChildSHEntry (in long aChildOffset); */
  36.   NS_IMETHOD GetChildSHEntry(PRInt32 aChildOffset, nsISHEntry **_retval) = 0;
  37.  
  38.   /**
  39.    * Add a Child SHEntry for a frameset page
  40.    */
  41.   /* void addChildSHEntry (in nsISHEntry aCloneReference, in nsISHEntry aHistoryEntry, in long aChildOffset); */
  42.   NS_IMETHOD AddChildSHEntry(nsISHEntry *aCloneReference, nsISHEntry *aHistoryEntry, PRInt32 aChildOffset) = 0;
  43.  
  44.   /* attribute boolean useGlobalHistory; */
  45.   NS_IMETHOD GetUseGlobalHistory(PRBool *aUseGlobalHistory) = 0;
  46.   NS_IMETHOD SetUseGlobalHistory(PRBool aUseGlobalHistory) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSIDOCSHELLHISTORY \
  52.   NS_IMETHOD GetChildSHEntry(PRInt32 aChildOffset, nsISHEntry **_retval); \
  53.   NS_IMETHOD AddChildSHEntry(nsISHEntry *aCloneReference, nsISHEntry *aHistoryEntry, PRInt32 aChildOffset); \
  54.   NS_IMETHOD GetUseGlobalHistory(PRBool *aUseGlobalHistory); \
  55.   NS_IMETHOD SetUseGlobalHistory(PRBool aUseGlobalHistory); 
  56.  
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_NSIDOCSHELLHISTORY(_to) \
  59.   NS_IMETHOD GetChildSHEntry(PRInt32 aChildOffset, nsISHEntry **_retval) { return _to GetChildSHEntry(aChildOffset, _retval); } \
  60.   NS_IMETHOD AddChildSHEntry(nsISHEntry *aCloneReference, nsISHEntry *aHistoryEntry, PRInt32 aChildOffset) { return _to AddChildSHEntry(aCloneReference, aHistoryEntry, aChildOffset); } \
  61.   NS_IMETHOD GetUseGlobalHistory(PRBool *aUseGlobalHistory) { return _to GetUseGlobalHistory(aUseGlobalHistory); } \
  62.   NS_IMETHOD SetUseGlobalHistory(PRBool aUseGlobalHistory) { return _to SetUseGlobalHistory(aUseGlobalHistory); } 
  63.  
  64. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  65. #define NS_FORWARD_SAFE_NSIDOCSHELLHISTORY(_to) \
  66.   NS_IMETHOD GetChildSHEntry(PRInt32 aChildOffset, nsISHEntry **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildSHEntry(aChildOffset, _retval); } \
  67.   NS_IMETHOD AddChildSHEntry(nsISHEntry *aCloneReference, nsISHEntry *aHistoryEntry, PRInt32 aChildOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddChildSHEntry(aCloneReference, aHistoryEntry, aChildOffset); } \
  68.   NS_IMETHOD GetUseGlobalHistory(PRBool *aUseGlobalHistory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUseGlobalHistory(aUseGlobalHistory); } \
  69.   NS_IMETHOD SetUseGlobalHistory(PRBool aUseGlobalHistory) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUseGlobalHistory(aUseGlobalHistory); } 
  70.  
  71. #if 0
  72. /* Use the code below as a template for the implementation class for this interface. */
  73.  
  74. /* Header file */
  75. class nsDocShellHistory : public nsIDocShellHistory
  76. {
  77. public:
  78.   NS_DECL_ISUPPORTS
  79.   NS_DECL_NSIDOCSHELLHISTORY
  80.  
  81.   nsDocShellHistory();
  82.  
  83. private:
  84.   ~nsDocShellHistory();
  85.  
  86. protected:
  87.   /* additional members */
  88. };
  89.  
  90. /* Implementation file */
  91. NS_IMPL_ISUPPORTS1(nsDocShellHistory, nsIDocShellHistory)
  92.  
  93. nsDocShellHistory::nsDocShellHistory()
  94. {
  95.   /* member initializers and constructor code */
  96. }
  97.  
  98. nsDocShellHistory::~nsDocShellHistory()
  99. {
  100.   /* destructor code */
  101. }
  102.  
  103. /* nsISHEntry getChildSHEntry (in long aChildOffset); */
  104. NS_IMETHODIMP nsDocShellHistory::GetChildSHEntry(PRInt32 aChildOffset, nsISHEntry **_retval)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* void addChildSHEntry (in nsISHEntry aCloneReference, in nsISHEntry aHistoryEntry, in long aChildOffset); */
  110. NS_IMETHODIMP nsDocShellHistory::AddChildSHEntry(nsISHEntry *aCloneReference, nsISHEntry *aHistoryEntry, PRInt32 aChildOffset)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* attribute boolean useGlobalHistory; */
  116. NS_IMETHODIMP nsDocShellHistory::GetUseGlobalHistory(PRBool *aUseGlobalHistory)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120. NS_IMETHODIMP nsDocShellHistory::SetUseGlobalHistory(PRBool aUseGlobalHistory)
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124.  
  125. /* End of implementation class template. */
  126. #endif
  127.  
  128.  
  129. #endif /* __gen_nsIDocShellHistory_h__ */
  130.